<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/fragment::top">

</head>

<body>
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <!--左侧导航-->
    <div th:replace="common/fragment::leftmenu"></div>
    <!--End 左侧导航-->

    <!--头部信息-->
    <div th:replace="common/fragment::header"></div>
    <!--End 头部信息-->

    <!--页面主要内容-->
    <main class="lyear-layout-content">

      <div class="container-fluid">
        <div class="row">
          <div class="col-lg-12">
            <div class="card">
              <div class="card-toolbar clearfix">
                <form action="" class="pull-right search-bar" method="get" role="form">
                  <div class="input-group">
                    <div class="input-group-btn">
                      <input id="search-field" name="search_field" type="hidden" value="title">
                      <button aria-expanded="false" aria-haspopup="true"
                              class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="search-btn"
                              type="button">
                        名称 <span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu">
                        <li><a data-field="title" href="javascript:void(0)" tabindex="-1">名称</a>
                        </li>
                      </ul>
                    </div>

                    <input class="form-control" id="keyword-find-rolename" name="keyword" placeholder="请输入名称" type="text"
                           value="">
                    <span class="input-group-btn">
                                              <button class="btn btn-primary" id="keyword-find-btn" onclick="keywordsearch()"
                                                      type="button">搜索</button>
                                            </span>

                  </div>
                </form>

                <div class="toolbar-btn-action">
                  <a class="btn btn-primary m-r-5" href="/stock/addstock.do">
                    <i class="mdi mdi-plus"></i>
                    新增
                  </a>

                </div>
              </div>
              <div class="card-body">
                <div class="table-responsive">
                  <table class="table table-bordered">
                    <thead>
                    <tr>
                      <!--<th>
                          <label class="lyear-checkbox checkbox-primary">
                              <input type="checkbox" id="check-all">
                              <span></span>
                          </label>
                      </th>-->
                      <th>序号</th>
                      <th hidden="hidden">id</th>
                      <th>库名</th>
                      <th>地址</th>

                      <th>联系人</th>
                      <th>电话</th>
                      <th>email</th>
                      <th>备注</th>
                    </tr>
                    </thead>
                    <tbody th:each="stock:${stocklist}">
                    <tr >
                      <td th:text="${stockStat.index+1}"></td>
                      <td hidden="hidden" th:text="${stock.id}"></td>
                      <td th:text="${stock.name}"></td>
                      <td th:text="${stock.address}"></td>

                      <td th:text="${stock.linkman}"></td>
                      <td th:text="${stock.phone}"></td>
                      <td th:text="${stock.email}"></td>



                      <td th:text="${stock.comment}"></td>

                      <td>
                        <div class="btn-group">
                          <a class="btn btn-xs btn-default"
                             data-toggle="tooltip"
                             th:href="@{'/stock/editstock.do?id='+${stock.id==''?'':stock.id}}" title="编辑">
                            <i class="mdi mdi-pencil"></i>
                          </a>

                        </div>
                      </td>
                    </tr>

                    </tbody>
                  </table>
                </div>
                <!--
                <ul class="pagination">
                  <li class="disabled"><span>«</span></li>
                  <li class="active"><span>1</span></li>
                  <li><a href="#1">2</a></li>
                  <li><a href="#1">3</a></li>
                  <li><a href="#1">4</a></li>
                  <li class="disabled"><span>...</span></li>
                  <li><a href="#!">14452</a></li>
                  <li><a href="#!">14453</a></li>
                  <li><a href="#!">»</a></li>
                </ul>
                -->
              </div>
            </div>
          </div>

        </div>

      </div>
    </main>
    <!--End 页面主要内容-->
    <!--End 页面主要内容-->
  </div>
</div>
<div th:replace="common/fragment::tail-script"></div>
<script type="text/javascript">


  $(document).ready(

  );

</script>
</body>
</html>